
<div>
	<p>Ngày thống kê: <?php echo $this->history->created_at; ?></p>
	<p>Keyword: <?php echo $this->keyword->name; ?></p>
</div>

	<table class="table-3" width="500px">
		<thead>
			<th>Rank</th> <th>Name</th> <th>URL</th> <th>Count</th> <th>Pos rank</th> <th>Pos count</th>
		</thead>
		<tbody>
		<?php 
		
			foreach ($this->rankings as $ranking):
		?>	
				<tr>
					<td>
						<?php echo $ranking->rank;?>
					</td>
					<td>
						<a class="website_ranking_menu" href="#<?php echo $ranking->history_id."-".$ranking->keyword_id."-".$ranking->website_id ?>" ><?php echo $ranking->website_name;?></a>
					</td>
					<td>
						<?php echo $ranking->website_url;?>
					</td>
					<td>
						<?php echo $ranking->count;?>
					</td>
					<td>
						<?php echo $ranking->position_rank;?>
					</td>
					<td>
						<?php echo $ranking->position_count;?>
					</td>
				</tr>
		<?php 		
			endforeach;
		?>
		</tbody>
	</table>
	<br/>


<script>

	var menu = {'page':'Page Ranking'};
	$(".website_ranking_menu").dContextMenu(menu, {'params':{'id':1,'b':2},'handle':'website_ranking_menu_handle'});

	
</script>
